package com.hmall.vo;

import lombok.Data;

import java.util.List;

/**
 * @ClassName QuestionVo
 * @Description //TODO
 * @Author zhoutao
 * @Date 2019/1/28 13:31
 * @Version 2.0
 **/
@Data
public class QuestionVo {

    /**
     * 问题主键
     */
    Integer questionId;

    /**
     * 问题内容
     */
    String questionContext;

    /**
     * 选项内容
     */
    List<QuestionItemVo> questionSelectItem;

    /**
     * 单选多选  1.单选 2.多选
     */
    Integer type;

   public QuestionVo(Integer questionId, String questionContext, List<QuestionItemVo> questionSelectItem) {
        this.questionId = questionId;
        this.questionContext = questionContext;
        this.questionSelectItem = questionSelectItem;
    }

    public QuestionVo(Integer questionId, String questionContext, List<QuestionItemVo> questionSelectItem, Integer type) {
        this.questionId = questionId;
        this.questionContext = questionContext;
        this.questionSelectItem = questionSelectItem;
        this.type = type;
    }
}
